package com.yix.study.sso.security.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

//    @RequestMapping("/")
//    public String root() {
//        return "index";
//    }

//    @RequestMapping("/index")
//    public String index() {
//        return "210918/index";
//    }
    @RequestMapping("/index")
    public String index() {
        return "210919/index";
    }

    @ResponseBody
    @RequestMapping("/error1")
    public String error1() throws Exception {
        if(true){
            throw new Exception();
        }
        return "error1";
    }

}
